<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
		<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
		<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
	</head>
	<body>
		<div class="container" style="margin: 0px auto;width: 400px;">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th>选手号</th>
						<th>分数</th>
					</tr>
				</thead>
				<tbody>
					<?php
						include_once("conn.php");
						$query = "select * from user";
						$pdotest->query('set names utf8');
						$result=$pdotest->query($query);
						$result->setFetchMode(PDO::FETCH_ASSOC);
						while($row=$result->fetch()){
							echo "<tr><th>".$row['id']."</th>";
							echo "<th>".$row['score']."</th></tr>";
						}
					?>
				</tbody>
			</table>
            <div style="text-align: center;">
					<button type="button" class="btn btn-default">评分完成</button>
			</div>
		</div>
	</body>
</html>